<script setup>
import { useRouter } from "vue-router";
import{ref, provide} from "vue";

const router = useRouter(); // 返回路由器实例
const routes = router.getRoutes();


let cozeState = ref(false)
provide('cozeState', cozeState)


</script>

<template>
  <div class="wrapper">
    <!-- 头部 -->
    <header class="header"> 废钢冶炼中心维保优化-派单系统【工业互联网应用实例】 </header>
    <!-- 侧边栏 -->
    <aside class="sidebar">
      <li v-for="(item, index) in routes" :key="index">
        <router-link :to="item.path" v-text="item.meta.title"></router-link>
      </li>
    </aside>
    <!-- 内容区 -->
    <article class="content">
      <router-view />
    </article>
    <!-- 底部 -->
    <footer class="footer">用友🤝SEENTAO  新工科服务 【守正行远 持续进化】</footer>
  </div>
</template>

<style lang="less">
@import "./style/index.less";
</style>
